package com.example.tass.domain;

import cn.tass.exceptions.TAException;
import com.alibaba.fastjson.annotation.JSONField;

public class MyDelUserCertRequest extends MyBaseRequest{
    private String certId;
    private int certIdType;
    @JSONField(
            name = "isSign"
    )
    private boolean isSign;

    public MyDelUserCertRequest() {
    }

    public String getCertId() {
        return this.certId;
    }

    public void setCertId(String certId) {
        this.certId = certId;
    }

    public int getCertIdType() {
        return this.certIdType;
    }

    public void setCertIdType(int certIdType) {
        this.certIdType = certIdType;
    }

    public boolean isSign() {
        return this.isSign;
    }

    public void setSign(boolean isSign) {
        this.isSign = isSign;
    }

    public void validate() throws TAException {
        this.checkParamIsEmpty(this.certId, "certId");
        if (this.certIdType <= 0 || this.certIdType > 4) {
            throw new TAException("Invalid certIdType parameters.", new Object[]{""});
        }
    }
}
